<%@ page language="java" import="java.util.*,com.opensymphony.xwork2.util.*,com.hf.listener.*" 
pageEncoding="UTF-8" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>  

 
<!doctype html>
<html lang="zh-hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
<link href="lib/" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<script src="lib/jquery-2.1.1.min.js"></script>

<title>HIFO</title>
<script language="javascript" type="text/javascript">

function tijiao1(){
	$("#state").val("a");	
	document.form1.submit();
};


$(document).ready(function () {
$("#div3").hide();

});

</script>
<% 
/* 
String code = request.getParameter("code");  
String test="";
HttpSession s;
ValueStack vs=(ValueStack)request.getAttribute("struts.valueStack");
String sessionId=(String)vs.findValue("sessionId");
sessionId=(sessionId==null?"":sessionId);
if(sessionId.equals("")){
	s= request.getSession(); 
	MySessionContext.AddSession(s);		//当sessionId不存在才添加session
	sessionId=s.getId();
}
*/
%>
</head>
<body>

<form name="form1"  action="login" method="post"> 
<!-- 隐藏数据域 -->
<div class="input-group hide">
<input type="text" class="form-control" id="state" name="state" value="<s:property value="state"/>">
<input type="text" class="form-control" name="openId" value="<s:property value="openId"/>">
<input type="text" class="form-control" name="accessToken" value="<s:property value="accessToken"/>">
<input type="text" class="form-control" name="refreshToken" value="<s:property value="refreshToken"/>">
</div>	    
</form>
      
<div class="jumbotron"><img src="images/logo.gif" ></div>   
<div class="container">           
<div class="row">
<div id="div1" class="col-xs-6"><a class="btn btn-primary btn-lg" href="#" role="button" onClick="tijiao1()">销售入口</a></div>
<div id="div2" class="col-xs-6"><a class="btn btn-primary btn-lg" href="images/learn.png" role="button"">使用帮助</a></div>
<div id="div3" class="col-xs-6"><a class="btn btn-primary btn-lg" href="#">服务入口</a></div>
</div>
</div>            
   


</body>
</html>